package JavaSEAdvance.day03_InnerAndLambda;

/**
 * @author Xiao
 * @date 2021/7/18
 */
public class Test1 {
    public static void main(String[] args) {
        Demo d = new Demo();
        d.function().showB();
    }
}

class Demo {
    public InterB function(){
        return () -> System.out.println("showB");
    }
}

interface InterB {
    void showB();
}